import type {FormRules} from 'element-plus'

export const rules: FormRules  = {
  name: [
    {
      type: 'string',
      required: true,
      message: '名称是必填项',
      trigger:"blur",
    }
  ],
  label: [
    {
      type: 'string',
      required: true,
      message: '项目描述是必填项',
      trigger:"blur",
    }
  ],
  href: [
    {
      required: true,
      message: '外链地址是必填项',
      trigger:"blur",
    }
  ],
  icon: [
    {
      required: true,
      message: '图标地址是必填项',
      trigger:"blur",
    }
  ],
  navId: [
    {
      required: true,
      message: '导航目录是必填项',
      trigger:"blur",
    }
  ],
}
